package com.cyy.common.pojo.dto;

import com.cyy.common.constant.MenuType;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

@Data
public class MenuFormDto {
    @Schema(description = "id")
    private Integer id;
    @Schema(description = "父级ID")
    private Integer parentId;
    @Schema(description = "名称")
    @NotNull(message = "name is required")
    private String name;
    @Schema(description = "类型")
    @NotNull(message = "type is required")
    private MenuType type;
    @Schema(description = "路径")
    private String path;
    @Schema(description = "组件")
    private String component;
    @Schema(description = "权限")
    private String perm;
    @Schema(description = "是否可见")
    private Boolean visible;
    @Schema(description = "排序")
    private Integer sort;
    @Schema(description = "图标")
    private String icon;
    @Schema(description = "重定向路径")
    private String redirect;
    @Schema(description = "是否设置缓存")
    private Boolean keepAlive;
    @Schema(description = "【目录】只有一个子路由是否始终显示")
    private Boolean alwaysShow;
}
